<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>栏目显示页面</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <css file="__PUBLIC__/css/base.css"/>
</head>
<body style="padding:10px;">
    <div class="now_path">
        <strong>您现在的位置：</strong>
        <a href="#">栏目管理</a>
    </div>
	<fieldset class='field_tishi'>
		<legend>操作提示</legend>
		顶级栏目不能添加文章
	</fieldset>
    <div class="send1">
        <a href="__CONTROL__/add_show" target="con" class="current button1">添加顶级栏目</a>
    </div>
    <table class="table1">
        <thead>
            <tr>
                <td width="30">排序</td>
                <td width="30">catid</td>
                <td width='300'>栏目名称</td>
				<td width='60' style='background:#B6C7F5;'>增加子信息</td>
                <td width="160">所属模型</td>
                <td width="200">操作</td>
            </tr>
        </thead>
        <tbody>
        <list from="$category" name="$v">
        <if value='$v.level eq 1'>
        <tr style='background:#F0F0F0;'>
        <else />
		<tr>	
        </if> 
            <td width="30">{$v.sort}</td>
            <td width="30">{$v.catid}</td>
            <td>
        <if value="$v.level gt 1"> 
            {$v.html}└<a href="__APP__/news/index/catid/{$v.catid}/mid/{$v.mid}">{$v.cname}</a>
            <else>{$v.cname}
        </if>
    </td>
	<td><if value='$v.level eq 1'>
		<font style='font-size:10px;'>顶栏目不加文章</font>
		<else />
		<a href='__WEB__/admin/news/add_news_show/catid/{$v.catid}/mid/{$v.mid}'><font style='color:blue'>添加</font></a>
		</if></td>
    <td width="160"><a href='__WEB__/admin/news/model_news/status/1/mid/{$v.mid}/recycled/0'>{$v.mname}({$v.modeltitle})</a></td>
    <td width="200" style="font-size:12px;">
        <a href="__CONTROL__/add_show/catid/{$v.catid}/mid/{$v.mid}">添加子栏目</a> |
        <a href="__CONTROL__/cat_modify/catid/{$v.catid}/mid/{$v.mid}">修改</a> | 
        <a href="__CONTROL__/del/catid/{$v.catid}">删除</a>
    </td>
</tr>
</list>
</tbody>  
</table>
<div class="send2">
    <a href="#" class="button1">排序</a>
</div>
</body>
</html>
